<!doctype html>
<html>
    <head>
        <title>easyXDM</title>
        <script type="text/javascript" src="../easyXDM.debug.js">
        </script>
        <script type="text/javascript">
            var transport;
            window.onload = function(){
                transport = new easyXDM.Socket({
                    local: "../name.html",
                    swf: "../easyxdm.swf",
                    onMessage: function(message, origin){
                        // Echo back the message
                        transport.postMessage(message);
                    }
                });
            };
            window.onunload = function(){
                if (transport) {
                    transport.destroy();
                }
            };
        </script>
    </head>
    <body>
    </body>
</html>
